<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="Generator" content="<?php echo ($title); ?>">
    <meta name="Keywords" content="<?php echo ($title); ?>">
    <meta name="Description" content="<?php echo ($title); ?>">
    <title><?php echo ($title); ?></title>
    <link href="/Public/static/home/css/style.css" rel="stylesheet" type="text/css">
    <link href="/Public/static/home/css/goods.css" rel="stylesheet" type="text/css">
    <link href="/Public/static/home/css/quick_buy.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/Public/static/home/js/magiczoom_plus.js"></script>
    <script type="text/javascript" src="/Public/static/home/js/common.js"></script>
    <script language="javascript">
        function shows_number(result)
        {
            if(result.product_number !=undefined){
                document.getElementById('shows_number').innerHTML = result.product_number+'件';
            }else{
                document.getElementById('shows_number').innerHTML = '无库存';
            }
        }
        //默认就显示第一个属性库存
        function changeKucun()
        {
            var frm=document.forms['ECS_FORMBUY'];
            spec_arr = getSelectedAttributes(frm);
            if(spec_arr==''){
                document.getElementById('shows_number').innerHTML = '<?php echo ($this_goods["number"]); ?>件';
            }else{
                Ajax.call('/goods/change_number?act=get_products_info', 'id=' + spec_arr+ '&goods_id=' + goods_id, shows_number, 'GET', 'JSON');
            }
        }
    </script>
    <script type="text/javascript">
        function $id(element) {
            return document.getElementById(element);
        }
        //切屏--是按钮，_v是内容平台，_h是内容库
        function reg(str){
            var bt=$id(str+"_b").getElementsByTagName("h2");
            for(var i=0;i<bt.length;i++){
                bt[i].subj=str;
                bt[i].pai=i;
                bt[i].style.cursor="pointer";
                bt[i].onclick=function(){
                    $id(this.subj+"_v").innerHTML=$id(this.subj+"_h").getElementsByTagName("blockquote")[this.pai].innerHTML;
                    for(var j=0;j<$id(this.subj+"_b").getElementsByTagName("h2").length;j++){
                        var _bt=$id(this.subj+"_b").getElementsByTagName("h2")[j];
                        var ison=j==this.pai;
                        _bt.className=(ison"":"h2bg");
                    }
                }
            }
            $id(str+"_h").className="none";
            $id(str+"_v").innerHTML=$id(str+"_h").getElementsByTagName("blockquote")[0].innerHTML;
        }
    </script>
    <script type="text/javascript" src="/Public/static/home/js/quick_buy1.js"></script>
    <style id="mz-css" type="text/css"></style>
</head>
<body style="cursor: auto;">
<script type="text/javascript" src="/Public/static/home/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="/Public/static/home/js/jquery.json.js"></script>
<script type="text/javascript" src="/Public/static/home/js/transport_jquery.js"></script>
<script type="text/javascript" src="/Public/static/home/js/utils.js"></script>
<script type="text/javascript" src="/Public/static/home/js/jquery.SuperSlide.js"></script>
<script type="text/javascript" src="/Public/static/home/js/lizi_common.js"></script>
<style>
    .topimg{width:100%; height:50px; margin:0 auto}
    .topimg a img{width:100%; height:50px; margin:0 auto; border:0px}
</style>
<div class="topimg">
    <a href="https://www.baidu.com">
        <img src="/Public/static/home/images/topimg.jpg" width="1024" height="50">
    </a>
</div>
<div id="header" class="new_header">
    <div class="hd_bar">
        <div class="bd_bar_bd cle">
            <ul class="welcome">
                <li><a id="favorite_wb" href="javascript:;" rel="nofollow">收藏FD商城</a></li>
                <?php $user_session = session(C('FRONT_SESSION'))?>
                <li id="ECS_MEMBERZONE">
                    <?php if(empty($user_session)): ?><a href="<?php echo U('login/login');?>" rel="nofollow">请登录</a>
                        <s>|</s>
                        <a href="<?php echo U('login/register');?>" rel="nofollow">免费注册</a>
                        <?php else: ?>
                        <a href="<?php echo U('Member/index');?>" class=""><?php echo ($user_session['account']); ?></a>
                        &nbsp;[
                        <a href="<?php echo U('login/login_out');?>">退出</a>
                        ]<?php endif; ?>

                </li>
            </ul>
            <ul id="userinfo-bar">
                <li class="more-menu">
                    <a href="<?php echo U('Member/index');?>">会员中心</a>
                    <i class="iconfont arrow"> </i>
                    <div class="more-bd">
                        <div class="list">
                            <a href="http://m36.ys.tstxflash.com/user.php?act=order_list">我的订单</a>
                            <a href="http://m36.ys.tstxflash.com/user.php?act=comment_list">我的评价</a>
                            <a href="http://m36.ys.tstxflash.com/user.php?act=account_log">我的余额</a>
                            <a href="http://m36.ys.tstxflash.com/user.php?act=bonus">我的红包</a>
                            <a href="http://m36.ys.tstxflash.com/user.php?act=collection_list">我的收藏</a>
                            <a href="http://m36.ys.tstxflash.com/user.php?act=address_list" class="last">修改收货地址</a>
                        </div>
                    </div>
                </li>
                <li><a href="#">
                    <i class="iconfont vipico"></i>
                    手机版
                </a>
                </li>
            </ul>
        </div>
    </div>
    <script type="text/javascript">

        <!--
        function checkSearchForm()
        {
            if(document.getElementById('keyword').value)
            {
                return true;
            }
            else
            {
                alert("请输入搜索关键词！");
                return false;
            }
        }
        -->

    </script>
    <div class="hd_main cle">
        <div class="logo">
            <a href="/" class="lizi_logo">
                <img src="/Public/static/home/images/logo.jpg" alt="FD商城">
            </a>
        </div>
        <div class="search_box">
            <form action="http://m36.ys.tstxflash.com/search.php" method="get" id="searchForm" name="searchForm" onsubmit="return checkSearchForm()">
                <input class="sea_input" type="text" name="keywords" id="keyword" value="" autocomplete="off">
                <input type="hidden" value="k1" name="dataBi">
                <button type="submit" class="sea_submit">搜索</button>
            </form>
        </div>
        <div class="head_search_hot"> <span>热搜榜：</span>  <a href="http://m36.ys.tstxflash.com/search.php?keywords=%E5%AE%A0%E7%89%A9%E7%8B%97%E7%B2%AE" target="_blank">宠物狗粮</a>  <a href="http://m36.ys.tstxflash.com/search.php?keywords=%E9%B8%9F%E7%AC%BC%EF%BC%8C%E7%A3%A8%E7%89%99%E6%A3%92" target="_blank">鸟笼，磨牙棒</a>  <a href="http://m36.ys.tstxflash.com/search.php?keywords=%E5%9B%BD%E4%BA%A7%E6%96%99" target="_blank">国产料</a>  <a href="http://m36.ys.tstxflash.com/search.php?keywords=%E9%81%9B%E7%8B%97%E7%BB%B3" target="_blank">遛狗绳</a>  </div>
        <div class="intro">
            <ul>
                <li class="no1"><a href="javascript:void(0);" target="_blank">
                    <h4>正品保障</h4>
                    <p>100%正品低价</p>
                </a></li>
                <li class="no2"><a href="javascript:void(0);" target="_blank">
                    <h4>30天退换货</h4>
                    <p>购物有保障</p>
                </a></li>
                <li class="no3"><a href="javascript:void(0);" target="_blank">
                    <h4>满99就包邮</h4>
                    <p>闪电发货</p>
                </a></li>
            </ul>
        </div>
    </div>
    <div class="hd_nav">
        <div class="hd_nav_bd cle">
            <div class="main_nav" id="main_nav">
                <div class="main_nav_link">
                    <a href="javascript:;">全部商品分类</a>
                    <i class="iconfont"></i>
                </div>
                <div class="main_cata" id="J_mainCata" style="opacity: 0; display: none;">
                    <ul>
                        <?php if(is_array($classification_info)): foreach($classification_info as $key=>$v): ?><li>
                                <h3>
                                    <a href="<?php echo U('Classification/lists');?>?id=<?php echo ($v["id"]); ?>"><?php echo ($v["classification"]); ?></a>
                                </h3>
                            </li><?php endforeach; endif; ?>
                    </ul>
                </div>
                <div class="J_subCata" id="J_subCata" style="opacity: 0; left: 213px; top: 35px;">
                    <?php foreach($classification_info as $v){ echo '<div class="J_subView" style="display: none;">'; foreach($v['_data'] as $vv){ echo '<dl><dt><a href="/Classification/lists?id='.$vv['id'].'">'.$vv['classification'].'</a></dt><dd>'; foreach($vv['_data'] as $vvv){ echo '<a href="/Classification/lists?id='.$vvv['id'].'">'.$vvv['classification'].'</a>'; } echo '</dd></dl><div class="clear"></div>'; } echo '</div>'; } ?>
                </div>
            </div>
            <ul class="sub_nav cle" id="sub_nav">
                <li class="current">
                    <a href="/" rel="nofollow">首页</a>
                </li>
                <?php if(is_array($classification_info)): $i = 0; $__LIST__ = $classification_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><li>
                        <a href="<?php echo U('classification/lists');?>?id=<?php echo ($v["id"]); ?>" rel="nofollow"><?php echo ($v["classification"]); ?></a>
                    </li><?php endforeach; endif; else: echo "" ;endif; ?>
                <li>
                    <a href="#" rel="nofollow">积分兑换</a>
                </li>
            </ul>
            <?php
 if(empty(session(C('FRONT_SESSION')))){ if(isset($_COOKIE['fd_goods'])){ $goods = $_COOKIE['fd_goods']; $cart_goods = unserialize($goods); }else{ $cart_goods = array(); } }else{ $cart_goods = M('cart')->where(['mid'=>session(C('FRONT_SESSION'))['id']])->select(); } $cart_count = 0; $all_price = 0.00; foreach($cart_goods as $v){ $cart_count += $v['num']; $all_price += $v['subtotal']; } ?>
            <div class="hd_cart" id="ECS_CARTINFO">
                <a class="tit" href="<?php echo U('Cart/cart');?>">
                    <b class="iconfont">Ɲ</b>去购物车结算
                    <span>
                        <i class="iconfont"></i>
                    </span>
                    <em class="num" id="hd_cartnum" style="visibility: visible;"><?php echo ($cart_count); ?></em>
                </a>
                <div class="list">
                    <?php if(empty($cart_count)): ?><p class="fail" style="display:none;">
                            <i class="iconfont">ŭ</i>
                            <br>
                            购物车空啦<br>
                            爱Ta，就带Ta来购物车吧
                        </p>
                        <?php else: ?>
                        <div class="data">
                            <?php if(is_array($cart_goods)): foreach($cart_goods as $key=>$v): ?><dl>
                                    <dt>
                                        <a target="_blank" href="<?php echo U('Goods/detail');?>?id=<?php echo ($v["goods_id"]); ?>">
                                            <img src="<?php echo ($v["litimg"]); ?>">
                                        </a>
                                    </dt>
                                    <dd>
                                        <h4><a target="_blank" href="<?php echo U('Goods/detail');?>?id=<?php echo ($v["goods_id"]); ?>"><?php echo ($v["goods_name"]); ?></a></h4>
                                        <p><span class="red"><?php echo ($v["fd_price"]); ?></span>&nbsp;<i>X</i>&nbsp;<?php echo ($v["num"]); ?></p>
                                        <a class="iconfont del" title="删除" href="javascript:deleteCartGoods(<?php echo ($v['goods_id']); ?>)">Ť</a>
                                    </dd>
                                </dl><?php endforeach; endif; ?>
                            <div class="count">共<span class="red" id="hd_cart_count"><?php echo ($cart_count); ?></span>件商品哦~
                                <p>总价:
                                    <span class="red">
                                        <em id="hd_cart_total"><?php echo ($all_price); ?></em>
                                    </span>
                                    <a href="<?php echo U('Cart/check_out');?>" class="btn">去结算</a>
                                </p>
                            </div>
                        </div><?php endif; ?>
                </div>
                <script type="text/javascript">
                    function deleteCartGoods(rec_id)
                    {
                        Ajax.call('/Cart/out_cart', 'id='+rec_id, deleteCartGoodsResponse, 'POST', 'JSON');
                    }

                    /**
                     * 接收返回的信息
                     */
                    function deleteCartGoodsResponse(res)
                    {
                        if (res.error)
                        {
                            alert(res.err_msg);
                        }
                        else
                        {
                            alert(res.msg);
                            window.location.reload();
                        }
                    }
                </script>
            </div>
        </div>
    </div>
    <div class="search_result"></div>
</div>

<script type="text/javascript" src="/Public/static/home/js/magiczoomplus.js"></script>
<script type="text/javascript" src="/Public/static/home/js/easydialog.min.js"></script>
<script type="text/javascript" src="/Public/static/home/js/lizi_goods.js"></script>
<div id="wrapper">
    <div class="breadcrumbs cle">
        <div class="menus">您当前的位置：
            <a href="/">首页</a>
            <code>&gt;</code>
            <?php
 $number = count($p_info,0); ?>
            <?php switch($number): case "1": ?><a href="<?php echo U('Classification/lists');?>?id=<?php echo ($v["id"]); ?>"><?php echo ($p_info[$class_id]['classification']); ?></a><?php break;?>
                <?php case "2": ?><a href="<?php echo U('Classification/lists');?>?id=<?php echo ($p_info[1]['id']); ?>"><?php echo ($p_info[1]['classification']); ?></a>
                    <code>&gt;</code>
                    <a href="<?php echo U('Classification/lists');?>?id=<?php echo ($p_info[0]['id']); ?>"><?php echo ($p_info[0]['classification']); ?></a><?php break;?>
                <?php case "3": ?><a href="<?php echo U('Classification/lists');?>?id=<?php echo ($p_info[2]['id']); ?>"><?php echo ($p_info[2]['classification']); ?></a>
                    <code>&gt;</code>
                    <a href="<?php echo U('Classification/lists');?>?id=<?php echo ($p_info[1]['id']); ?>"><?php echo ($p_info[1]['classification']); ?></a>
                    <code>&gt;</code>
                    <a href="<?php echo U('Classification/lists');?>?id=<?php echo ($p_info[0]['id']); ?>"><?php echo ($p_info[0]['classification']); ?></a><?php break; endswitch;?>
            <code>&gt;</code>
            <?php echo ($this_goods["goods_name"]); ?>
        </div>
    </div>
    <div class="detail cle">
        <div class="detail_img" id="detail_img">
            <div class="pic_view">
                <a href="<?php echo ($this_goods["litimg"]); ?>" class="MagicZoomPlus" id="Zoomer" rel="hint-text: ; selectors-effect: false; selectors-class: current; zoom-distance: 10;zoom-width: 400; zoom-height: 400;" title="" style="position: relative; display: inline-block; text-decoration: none; outline: 0px; overflow: hidden; width: auto; height: auto;">
                    <img alt="<?php echo ($this_goods["goods_name"]); ?>" src="<?php echo ($this_goods["litimg"]); ?>" style="opacity: 1;">
                    <div class="MagicZoomPup" style="z-index: 10; position: absolute; overflow: hidden; display: none; visibility: hidden; width: 190px; height: 190px; opacity: 0.5; left: 121px; top: 0px;"></div>
                    <div class="MagicZoomPlusHint" style="display: block; overflow: hidden; position: absolute; visibility: visible; z-index: 1; left: 2px; right: auto; top: 2px; bottom: auto; opacity: 0.75; max-width: 376px;"></div>
                </a>
            </div>
            <div class="item-thumbs" id="item-thumbs">
                <a class="prev" href="javascript:void(0);"></a>
                <a class="next" href="javascript:void(0);"></a>
                <div class="bd">
                    <ul class="cle">
                        <li class="current">
                            <a href="<?php echo ($this_goods["litimg"]); ?>" rel="zoom-id: Zoomer" rev="<?php echo ($this_goods["litimg"]); ?>" class="current MagicThumb-swap" style="outline: none; display: inline-block;">
                                <img alt="<?php echo ($this_goods["goods_name"]); ?>" src="<?php echo ($this_goods["litimg"]); ?>">
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <form action="javascript:addToCart(<?php echo ($this_goods["id"]); ?>)" method="post" name="ECS_FORMBUY" id="ECS_FORMBUY">
            <div class="item-info" id="item-info">
                <dl class="loaded">
                    <dt class="product_name">
                    <h1><?php echo ($this_goods["goods_name"]); ?></h1>
                    <p class="desc"> <span class="gray"></span> </p>
                    </dt>
                    <dd class="property">
                        <ul>
                            <li> 此商品为免运费商品，计算配送金额时将不计入配送费用 </li>
                            <li> <span class="lbl">市场价</span> <em class="cancel">￥<?php echo ($this_goods["market_price"]); ?>元</em> </li>
                            <li>
                                <script type="text/javascript" src="/Public/static/home/js/lefttime.js"></script>
                                <span class="icon_promo">抢购</span>
                                <span class="lbl">促销价</span>
                                <span class="unit">
                                    <strong class="nala_price red" id="ECS_SHOPPRICE">￥<?php echo ($this_goods["fd_price"]); ?>元</strong>
                                </span>
                            </li>
                            <li>
                                <span>可使用<em class="red">0</em>积分</span>
                            </li>
                            <li>
                                <span class="lbl">销&nbsp;&nbsp;&nbsp;量</span>
                                <span>最近售出<em class="red">789</em>件</span>
                                （<a href="http://sx.web51.youxueshop.com/goods.php?id=<?php echo ($this_goods["id"]); ?>#pjxqitem" id="pjxqitem_trig">已有 0 人评价</a>）
                            </li>
                        </ul>
                    </dd>
                    <dd class="tobuy-box cle">
                        <ul class="sku">
                            <script type="text/javascript">
                                var myString=new Array();
                            </script>
                            <li class="skunum_li cle"> <span class="lbl">数&nbsp;&nbsp;&nbsp;量</span>
                                <div class="skunum" id="skunum">
                                    <span class="minus" title="减少1个数量">
                                        <i class="iconfont">-</i>
                                    </span>
                                    <input id="number" name="number" type="text" min="1" value="1" style="height: 32px" onchange="countNum(0)">
                                    <span class="add" title="增加1个数量">
                                        <i class="iconfont">+</i>
                                    </span>
                                    <cite class="storage"> 件 </cite>
                                </div>
                                <div class="skunum" id="skunum">
                                    <cite class="storage">(<font id="shows_number">7315件</font>)</cite>
                                </div>
                            </li>
                            <li class="add_cart_li">
                                <a href="javascript:addToCart(<?php echo ($this_goods["id"]); ?>)" class="btn" id="buy_btn">
                                    <i class="iconfont">ŭ</i>加入购物车
                                </a>
                                <a id="fav-btn" class="graybtn" href="javascript:collect(<?php echo ($this_goods["id"]); ?>)">
                                    <i class="iconfont">Ū</i>收藏
                                </a>
                            </li>
                        </ul>
                    </dd>
                </dl>
            </div>
        </form>
        <div class="seemore_items" id="seemore_items" style="display: block;">
            <h3>看了又看<a href="javascript:;" class="next refresh" title="换一组"><i class="iconfont"></i></a></h3>
            <div class="bd">
                <div class="tempWrap" style="overflow:hidden; position:relative; height:435px">
                    <ul id="history_list" style="position: relative; padding: 0px; margin: 0px; top: 0px;">
                        <li style="height: 132px;">
                            <a href="http://sx.web51.youxueshop.com/goods.php?id=1" target="_blank" title="新鲜水果甜蜜香脆单果约800克">
                                <img alt="新鲜水果甜蜜香脆单果约800克" src="./休闲零食膨化食品焦糖_奶油_椒麻味_休闲食品_模板之家商城演示站_files/1_thumb_G_1449024889033.jpg">
                                <p class="price">￥156</p>
                            </a>
                        </li>
                        <li>

                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <script type="text/javascript">
            if (document.getElementById('history_list').innerHTML.replace(/\s/g,'').length<1)
            {
                document.getElementById('seemore_items').style.display='none';
            }
            else
            {
                document.getElementById('seemore_items').style.display='block';
            }
            function clear_history()
            {
                Ajax.call('user.php', 'act=clear_history',clear_history_Response, 'GET', 'TEXT',1,1);
            }
            function clear_history_Response(res)
            {
                document.getElementById('history_list').innerHTML = '您已清空最近浏览过的商品';
            }
        </script> </div>
    <div class="detail_bgcolor">
        <div class="z-detail-box cle">
            <div class="z-detail-left">
                <div class="tabs_bar_warp">
                    <div class="tabs_bar" id="tabs_bar" style="">
                        <ul>
                            <li class="current_select"> <a class="spxqitem" rel="nofollow" href="javascript:void(0);">商品详情</a> </li>
                            <li class=""><a class="pjxqitem" href="javascript:void(0);" name="pjxqitem" rel="nofollow">评价详情(<em>0</em>)</a></li>
                        </ul>
                    </div>
                </div>
                <div class="product_tabs">
                    <div class="sectionbox z-box" id="spxqitem">
                        <div class="spxq_main">
                            <div>
                                <div>
                                    <table>
                                        <tbody>
                                        <tr>
                                            <td width="20%" class="th"> 产品名称 :</td>
                                            <td width="80%"> <?php echo ($this_goods["goods_name"]); ?></td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <p>&nbsp; </p>
                            </div>
                            <div class="spxq_dec">
                                <?php echo ($this_goods["body"]); ?>
                            </div>
                        </div>
                    </div>
                    <div class="z-box sectionbox">
                        <div class="z-detail-com-box" id="ECS_COMMENT">
                        <div class="z-detail-point-box cle" style="border-width:0 0 1px 0">
                        <div class="z-detail-point-box-left">
                            <p><font>温馨提示：</font>因厂家更改产品包装、产地或者更换随机附件等没有任何提前通知，且每位咨询者购买情况、提问时间等不同，为此以下回复仅对提问者3天内有效，其他网友仅供参考！若由此给您带来不便请多谅解！</p>
                        </div>
                        <div class="z-detail-point-box-right">
                            <div>对自己使用过的商品进行评价，它将成为大家购买参考依据。</div>
                            <div><font>评论隐私保护：</font>1.匿名评论；2.注册用户评论(加密处理)</div>
                            <div class="good_com_box"> 用户可放心发表使用后的心得感受<a href="javascript:void(0);" onclick="commentsFrom()" id="go_com" class="btn go_btn">我要评价</a>  </div>
                        </div>
                    </div>
                        <div class="z-com-box-head">
                            <div class="z-select"> </div>
                            全部评价（0） </div>
                        <div class="z-com-list" id="ECS_COMMENT">
                            暂时还没有任何用户评论
                            <div id="compage">
                                <div class="pagenav">
                                    <form name="selectPageForm" action="#" method="get">
                                        <a href="javascript:;" class="step" style="border:1px solid #eee; color:#ccc;">上一页</a>
                                        <a href="javascript:;" class="step" style="border:1px solid #eee; color:#ccc;">下一页</a>
                                    </form>
                                </div>
                            </div>
                        </div>
                        <script type="Text/Javascript" language="JavaScript">
                            <!--
                            function selectPage(sel)
                            {
                                sel.form.submit();
                            }
                            //-->
                        </script>
                        <div id="commentsFrom">
                            <form action="javascript:;" onsubmit="submitComment(this)" method="post" name="commentForm" id="commentForm">
                                <ul class="form addr-form" id="addr-form">
                                    <span style="position:absolute; right:10px; top:5px; font-size:24px; cursor:pointer;" onclick="easyDialog.close();">×</span>
                                    <li>
                                        <label>用户名</label>
                                        匿名用户      </li>
                                    <li>
                                        <label>E-mail</label>
                                        <input type="text" name="email" id="email" maxlength="100" value="" class="txt">
                                    </li>
                                    <li>
                                        <label>评价等级</label>
                                        <input name="comment_rank" type="radio" value="1" id="comment_rank1">
                                        <img src="/Public/static/home/images/stars1.gif">
                                        <input name="comment_rank" type="radio" value="2" id="comment_rank2">
                                        <img src="/Public/static/home/images/stars2.gif">
                                        <input name="comment_rank" type="radio" value="3" id="comment_rank3">
                                        <img src="/Public/static/home/images/stars3.gif">
                                        <input name="comment_rank" type="radio" value="4" id="comment_rank4">
                                        <img src="/Public/static/home/images/stars4.gif">
                                        <input name="comment_rank" type="radio" value="5" checked="checked" id="comment_rank5">
                                        <img src="/Public/static/home/images/stars5.gif">
                                    </li>
                                    <li>
                                        <label>评论内容</label>
                                        <textarea name="content" class="txt" style="height:80px; width:300px;"></textarea>
                                    </li>
                                    <li>
                                        <label>验证码</label>
                                        <input type="text" class="txt" name="captcha" maxlength="6">
                                        <img src="/Goods/captcha" alt="captcha" onclick="this.src=&#39;/Goods/captcha?&#39;+Math.random()" width="100" height="34" style="position:relative; top:13px;">
                                    </li>
                                    <li>
                                        <input type="hidden" name="cmt_type" value="0">
                                        <input type="hidden" name="id" value="43">
                                        <label>&nbsp;&nbsp;&nbsp;&nbsp;</label>
                                        <input name="" type="submit" value="提交评论" class="btn" style="border:none; height:40px; cursor:pointer; width:150px; font-size:16px;">
                                    </li>
                                </ul>
                            </form>
                        </div>
                        <script type="text/javascript">
                            //<![CDATA[
                            var cmt_empty_username = "请输入您的用户名称";
                            var cmt_empty_email = "请输入您的电子邮件地址";
                            var cmt_error_email = "电子邮件地址格式不正确";
                            var cmt_empty_content = "您没有输入评论的内容";
                            var captcha_not_null = "验证码不能为空!";
                            var cmt_invalid_comments = "无效的评论内容!";
                            /**
                             * 提交评论信息
                             */
                            function submitComment(frm)
                            {
                                var cmt = new Object;

                                //cmt.username        = frm.elements['username'].value;
                                cmt.email           = frm.elements['email'].value;
                                cmt.content         = frm.elements['content'].value;
                                cmt.type            = frm.elements['cmt_type'].value;
                                cmt.id              = frm.elements['id'].value;
                                cmt.enabled_captcha = frm.elements['enabled_captcha'] ? frm.elements['enabled_captcha'].value : '0';
                                cmt.captcha         = frm.elements['captcha'] ? frm.elements['captcha'].value : '';
                                cmt.rank            = 0;

                                for (i = 0; i < frm.elements['comment_rank'].length; i++)
                                {
                                    if (frm.elements['comment_rank'][i].checked)
                                    {
                                        cmt.rank = frm.elements['comment_rank'][i].value;
                                    }
                                }
                                if (cmt.content.length == 0)
                                {
                                    alert(cmt_empty_content);
                                    return false;
                                }
                                if (cmt.enabled_captcha > 0 && cmt.captcha.length == 0 )
                                {
                                    alert(captcha_not_null);
                                    return false;
                                }

                                Ajax.call('comment.php', 'cmt=' + $.toJSON(cmt), commentResponse, 'POST', 'JSON');
                                return false;
                            }

                            /**
                             * 处理提交评论的反馈信息
                             */
                            function commentResponse(result)
                            {
                                if (result.message)
                                {
                                    alert(result.message);
                                }

                                if (result.error == 0)
                                {
                                    var layer = document.getElementById('ECS_COMMENT');

                                    if (layer)
                                    {
                                        layer.innerHTML = result.content;
                                    }
                                }
                                easyDialog.close();
                                window.location.reload();
                            }

                            function commentsFrom(){
                                easyDialog.open({
                                    container : 'commentsFrom'
                                });
                            }
                        </script>
                    </div>
                    </div>
                </div>
            </div>
            <div class="z-detail-right">
                <div class="tabs_bar_right">
                    <div class="tabs_bar2">热卖商品</div>
                </div>
                <div class="hot_box">
                    <ul>
                        <li>
                            <a href="http://sx.web51.youxueshop.com/goods.php?id=49" target="_self">
                                <img width="194px" height="194px" src="./休闲零食膨化食品焦糖_奶油_椒麻味_休闲食品_模板之家商城演示站_files/49_thumb_G_1448162819357.jpg">
                                <p>1元支付测试商品</p>
                                <p class="hot_price">
                                    ￥1元          											</p>
                            </a>
                        </li>
                        <li>
                            <a href="http://sx.web51.youxueshop.com/goods.php?id=16" target="_self">
                                <img width="194px" height="194px" src="./休闲零食膨化食品焦糖_奶油_椒麻味_休闲食品_模板之家商城演示站_files/16_thumb_G_1448947194349.jpg">
                                <p>52度茅台集团国隆双喜酒500mlx6</p>
                                <p class="hot_price">
                                    ￥19元          											</p>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="add_ok" id="cart_show">
    <div class="tip">
        <i class="iconfont"></i>商品已成功加入购物车
    </div>
    <div class="go">
        <a href="javascript:easyDialog.close();" class="back">&lt;&lt;继续购物</a>
        <a href="/Cart/cart" class="btn">去结算</a>
    </div>
</div>
<div id="footer">
    <div class="ft-bg">
        <div class="w-ensure mb20">
            <div class="w-main">
                <ul>
                    <li><a target="_blank" href="http://m36.ys.tstxflash.com/"><img width="300" height="90" src="/Public/static/home/images/ft-svr1.gif"></a></li>
                    <li><a target="_blank" href="http://m36.ys.tstxflash.com/"><img width="300" height="90" src="/Public/static/home/images/ft-svr2.gif"></a></li>
                    <li><a target="_blank" href="http://m36.ys.tstxflash.com/"><img width="300" height="90" src="/Public/static/home/images/ft-svr3.gif"></a></li>
                    <li><a target="_blank" href="http://m36.ys.tstxflash.com/"><img width="300" height="90" src="/Public/static/home/images/ft-svr4.gif"></a></li>
                </ul>
            </div>
        </div>
        <div class="ft_main">
            <div class="ft_links">
                <div class="ft_nav">
                    <a href="http://m36.ys.tstxflash.com/article.php?id=1" class="noborder" rel="nofollow">免责条款</a>
                    <a href="http://m36.ys.tstxflash.com/article.php?id=2" rel="nofollow">隐私保护</a>
                    <a href="http://m36.ys.tstxflash.com/article.php?id=3" rel="nofollow">咨询热点</a>
                    <a href="http://m36.ys.tstxflash.com/article.php?id=4" rel="nofollow">联系我们</a>
                    <a href="http://m36.ys.tstxflash.com/article.php?id=5" rel="nofollow">公司简介</a>
                    <a href="http://m36.ys.tstxflash.com/wholesale.php" rel="nofollow">批发方案</a>
                    <a href="http://m36.ys.tstxflash.com/myship.php" rel="nofollow">配送方式</a>
                </div>
            </div>
            <div class="ft_txt">
                <p>© 2005-2017 魔客吧 版权所有，并保留所有权利。ICP备案证书号：<a href="http://www.miitbeian.gov.cn/" target="_blank" rel="nofollow">冀ICP12345678号</a></p>
                <p class="ft_contact"> <span>服务时间：09:00-23:00</span> </p>
            </div>
        </div>
    </div>
</div>
<script>
    $(function(){
        $(window).scroll(function(){
            if($(window).scrollTop()>100){  //距顶部多少像素时，出现返回顶部按钮
                $("#side-bar .gotop").fadeIn();
            }
            else{
                $("#side-bar .gotop").hide();
            }
        });
        $("#side-bar .gotop").click(function(){
            $('html,body').animate({'scrollTop':0},500); //返回顶部动画 数值越小时间越短
        });
    });
</script>
<ul id="side-bar" class="side-pannel side-bar">
    <a href="http://wpa.qq.com/msgrd?v=3&amp;uin=272922238&amp;site=%E9%AD%94%E5%AE%A2%E5%90%A7&amp;menu=yes" target="_blank" class="kefuqq"></a>
    <a href="http://amos1.taobao.com/msg.ww?v=2&amp;uid=o%E8%8F%9C%E9%BE%99&amp;s=2" target="_blank" class="kefuww"></a>
    <a href="javascript:;" class="qr weixin"><i></i></a>
    <a href="javascript:;" class="gotop" style="display: block;"></a>
</ul>
<script type="text/javascript">
    var goods_id = <?php echo ($this_goods["id"]); ?>;
    var goodsattr_style = 1;
    var gmt_end_time = 1639641600;
    var day = "天";
    var hour = "小时";
    var minute = "分钟";
    var second = "秒";
    var end = "结束";
    var goodsId = <?php echo ($this_goods["id"]); ?>;
    var fd_price = <?php echo ($this_goods["fd_price"]); ?>;
    var now_time = 1488427188;
    onload = function(){
        changePrice();
        changeKucun();//这里是添加的
        fixpng();
        try {onload_leftTime();}
        catch (e) {}
    };
    /**
     * 点选可选属性或改变数量时修改商品价格的函数
     */
    function changePrice()
    {
        var attr = getSelectedAttributes(document.forms['ECS_FORMBUY']);
        var qty = document.forms['ECS_FORMBUY'].elements['number'].value;
        Ajax.call('/goods/change_price', 'id=' + goodsId  + '&number=' + qty, changePriceResponse, 'GET', 'JSON');
    }
    /**
     * 接收返回的信息
     */
    function changePriceResponse(res)
    {
        if (res.err_msg.length > 0)
        {
            alert(res.err_msg);
        }
        else
        {
            if (document.getElementById('ECS_SHOPPRICE'))
                document.getElementById('ECS_SHOPPRICE').innerHTML = res.result;
            if (document.getElementById('ECS_SHOPPRICE_TOP'))
                document.getElementById('ECS_SHOPPRICE_TOP').innerHTML = res.result;
            if (document.getElementById('ECS_GOODS_AMOUNT'))
                document.getElementById('ECS_GOODS_AMOUNT').innerHTML = res.result;
        }
    }
</script>
<div style="position: absolute; top: -10000px; width: 10px; height: 10px; overflow: hidden;">
    <div class="MagicZoomBigImageCont MagicBoxShadow" style="overflow: hidden; z-index: 10002; top: -100000px; position: absolute; width: 400px; height: 400px; left: 580px; opacity: 0;">
        <div class="MagicZoomHeader" style="position: relative; z-index: 10; left: 0px; top: 0px; padding: 3px; display: none; visibility: hidden;"></div>
        <div style="overflow: hidden;">
            <img src="./休闲零食膨化食品焦糖_奶油_椒麻味_休闲食品_模板之家商城演示站_files/43_P_1448948762645.jpg" style="padding: 0px; margin: 0px; border: 0px; width: auto; height: auto; position: relative; left: -255px; top: 0px;">
        </div>
    </div>
</div>
<div style="position: absolute; top: -10000px; width: 10px; height: 10px; overflow: hidden;">
    <div class="MagicThumb-expanded" style="position: absolute; top: -10000px; left: 0px; z-index: 10001; display: block; overflow: hidden; margin: 0px; width: 800px;">
        <div style="position: relative; top: 0px; left: 0px; z-index: 2; width: 100%; height: auto; overflow: hidden; display: block; padding: 0px; margin: 0px;">
            <img src="./休闲零食膨化食品焦糖_奶油_椒麻味_休闲食品_模板之家商城演示站_files/43_P_1448948762645.jpg" class="" style="max-width: none; max-height: none; position: static; top: auto; width: 100%; height: auto; display: block; margin: 0px; padding: 0px;">
            <div class="MagicThumb-buttons" style="position: absolute; visibility: visible; z-index: 111; overflow: hidden; cursor: pointer; top: 5px; bottom: auto; right: auto; left: 5px; background-position: -10000px -10000px; background-repeat: no-repeat;">
                <a title="Close" href="http://sx.web51.youxueshop.com/goods.php?id=43#" rel="close" style="display: block; float: left; position: relative; outline: none; cursor: pointer; border: 0px; padding: 0px; background-image: inherit; background-color: transparent; background-position: 0px 0px;"></a>
                <a title="Previous" href="http://sx.web51.youxueshop.com/goods.php?id=43#" rel="previous" style="display: block; float: left; position: relative; outline: none; cursor: pointer; border: 0px; padding: 0px; background-image: inherit; background-color: transparent; background-position: 0px 0px;"></a>
                <a title="Next" href="http://sx.web51.youxueshop.com/goods.php?id=43#" rel="next" style="display: block; float: left; position: relative; outline: none; cursor: pointer; border: 0px; padding: 0px; background-image: inherit; background-color: transparent; background-position: 0px 0px;"></a>
            </div>
        </div>
    </div>
</div>
</body>
</html>